package com.lmt_13;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.Reader;

public class BufferReaderTest {
    public static void main(String[] args) {
        try (
                Reader r = new FileReader("src/com/lmt_13/2.txt");
                BufferedReader reader = new BufferedReader(r);
                ){
//            char []buffer = new char[4];
//            int len;
//            while ((len = reader.read(buffer))!= -1){
//                System.out.print(new String(buffer,0,len));
//            }
            String line ;
            while ((line = reader.readLine())!=null){
                System.out.println(line);
            }

        }catch (Exception e){
            e.printStackTrace();
        }


    }
}
